import { ADD_ARTICLE, CHANG_ROUTER } from './action-type'

export const addArticle = article => ({
  type: ADD_ARTICLE,
  payload: article
})

/**
 * 发布页面的id
 * @param {String} key -改变router的id值
 */ 
export const changeRouter = key => ({
  type: CHANG_ROUTER,
  payload: key
})
